﻿#include<stdio.h>
int main()
{
    int i, n, s = 1;
    printf("Please enter n:");
    scanf_s("%d", &n);
    for (i = 2; i <= n; i++)
        s = s * i;
    printf("%d! = %d\n", n, s);
    return 0;
}